package com.hansming.bss.modules.sfc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hansming.bss.common.service.CrudService;
import com.hansming.bss.modules.sfc.dao.LineDaysDao;
import com.hansming.bss.modules.sfc.entity.LineDays;

/**
 * 线路天数信息Service
 * @author Hansming
 * @version 2017-09-19
 */
@Service
@Transactional(readOnly = true)
public class LineDaysService extends CrudService<LineDaysDao,LineDays>{
	
	@Autowired
	private LineDaysDao lineDaysDao;
	
	public List<LineDays> selectBylineid(String lineid){
		return lineDaysDao.selectBylineid(lineid);
	}
	public List<LineDays> updatedays(String id){
		return lineDaysDao.updatedays(id);
	}
	
	public List<LineDays> querys(String id){
		return lineDaysDao.querys(id);
	}
	
	public List<LineDays> selectday(String id){
		return lineDaysDao.selectday(id);
	}
	@Transactional(readOnly = false)
	public void daysdelete(String lineid,String id){
		lineDaysDao.daysdelete(lineid,id);
	}
	@Transactional(readOnly = false)
	public void daysdetaildlt(String id){
		lineDaysDao.daysdetaildlt(id);
	}
	@Transactional(readOnly = false)
	public void updatedays(String lineid,String id,String day,String dayjourney){
		lineDaysDao.updatedays(lineid,id,day,dayjourney);
	}
	@Transactional(readOnly = false)
	public void insertdays(String lineid,String id,String day,String dayjourney){
		lineDaysDao.insertdays(lineid,id,day,dayjourney);
	}
}
